# setup.py
from bbfreeze import Freezer
import shutil
 
includes = ['mechanize', 'urllib2', 'BeautifulSoup', 'sip', 'Bio']
excludes = ['_gtkagg', '_tkagg', 'bsddb', 'curses', 'email', 'pywin.debugger',
            'pywin.debugger.dbgcon', 'pywin.dialogs', 'tcl',
            'Tkconstants', 'Tkinter', 'xlrd', 'xlwt']
 
bbFreeze_Class = Freezer('dist/CitationControl/bin', includes=includes, excludes=excludes)
 
bbFreeze_Class.addScript("CitationControl.py", gui_only=False)
 
bbFreeze_Class.use_compression = 0
bbFreeze_Class.include_py = True
bbFreeze_Class()

shutil.copy('CitationControl.conf', 'dist/CitationControl/CitationControl.conf')
shutil.copy('CitationControl_default.conf', 'dist/CitationControl/CitationControl_default.conf')
#shutil.copytree('xpdf', 'dist/CitationControl/bin/xpdf')
shutil.copytree('help', 'dist/CitationControl/bin/help')
shutil.copytree('icons', 'dist/CitationControl/bin/icons')
shutil.copy('license.txt', 'dist/CitationControl/license.txt')
shutil.copy('README', 'dist/CitationControl/README')
#shutil.copy('gzip.py', 'dist/bin/gzip.py')
shutil.copy('CitationControl.sh', 'dist/CitationControl.sh')
#shutil.copy('CC.bat', 'dist/CC.bat')
#shutil.copy('CitationControl.exe', 'dist/CitationControl.exe')
